from abc import ABCMeta, abstractmethod

from PyQt5.QtWidgets import QDialog, QDesktopWidget


class ConfigurationDialog(QDialog):
    __metaclass__ = ABCMeta

    def __init__(self):
        super().__init__()
        # self.init_ui()
        # self.center()

    def init_ui(self):
        pass

    @abstractmethod
    def get_data(self):
        pass

    def center(self):
        self.size = QDesktopWidget().screenGeometry()
        self.resize = self.geometry()
        self.move(int((self.size.width() - self.resize.width()) / 5), int((self.size.height() - self.resize.height()) / 5))